<div id="menu">
	<div id="left">
		Domain: <?php echo $_SERVER['HTTP_HOST']; ?>
	</div>
	<div id="right">
		<div id="timer">
		</div>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function() {

    function update() {
      $.ajax({
       type: 'POST',
       url: '<?php echo $this->baseUrl(); ?>/index/date-time/format/json',
       contentType: 'application/json; charset=utf-8',
       dataType: 'json',
       timeout: 1000,
       success: function(data) {
          $("#timer").html('Today is ' + data.dateTime); 
          window.setTimeout(update, 1000);
       },
      });
     }
     update();
});
</script>